package com.zxy.study.adapter;

import com.zxy.study.R;
import com.zxy.study.base.recyclerview.BaseSimpleAdapter;
import com.zxy.study.base.recyclerview.BaseViewHolder;
import com.zxy.study.bean.HomeBean;

import java.util.List;

/**
 * @author : Shonn.Zhang
 * @email : shonn.zhang@mart.blue
 * @time : 2020/9/4 14:53
 * @desc :
 */
public class MainAdapter extends BaseSimpleAdapter<HomeBean> {

    public MainAdapter(List<HomeBean> dataList) {
        super(R.layout.item_activity_main,dataList);
    }

    @Override
    public void onDefaultBindViewHolder(BaseViewHolder holder, HomeBean item, int position) {
        holder.setText(R.id.title, item.getTitle());
    }
}
